<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Simple form sending and receiving a JSON object to/from PHP</title>
<script type="text/javascript" src="Scripts/jquery-1.10.2.min.js"></script> 
<script type="text/javascript"><!--
$(document).ready(function(){ 
 
  $.post('http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?key=AjyC0pJX36cF2dV8X3LUxtFaYb9hNfmprGxQDxSAyLSxHRPSGI-bkL2oO5zIhUfa', showResult, "text");
});
 
function showResult(res)
{
debugger;
  $("#fullresponse").html("Full response: " +res);
  var obj = JSON.parse(res);
  $("#sales1Lastname").html("Lastname of sales[1]: " +obj.sales[1].lastname);
}
//--></script>
</head>
<body>
  <div id="fullresponse"><span/></div>
  <div id="sales1Lastname"><span/></div>
</body>
</html>